Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync document crud with search #205

Merged
merged 1 commit into from
Jun 30, 2024
Merged

sync document crud with search #205

merged 1 commit into from
Jun 30, 2024

Conversation

cloverich
Copy link
Owner

@cloverich cloverich commented Jun 30, 2024

Re-work document create, update, and delete operations to be (mostly) synchronized with search, such that navigating back to the documents list after create / edit / delete reflects the changes in search results.

  • When creatnig a document, auto-save it and navigate to edit view, adding to current search
  • When editing, update the document (title, etc) so its reflected in search
  • When deleting, remove the document from the search results

Also re-work document creation to be fully separate from EditableDocument, and remove hack that hid the fact that (technically) stores could be null when pulled from context; updated all calls to append ! so its documented what is happening; hopefully this protects against future refactors where consumers are yanked out of the provider that sets up the context.

Closes #170
Closes #189

Re-work document create, update, and delete operations to be (mostly) synchronized with search, such that navigating back to the documents list after create / edit / delete reflects the changes in search results.

- When creatnig a document, auto-save it and navigate to edit view, adding to current search
- When editing, update the document (title, etc) so its reflected in search
- When deleting, remove the document from the search results

Also re-work document creation to be fully separate from EditableDocument, and remove  hack that hid the fact that (technically) stores could be null when pulled from context; updated all calls to append ! so its documented what is happening; hoepfully this protects against future refactors where consumers are yanked out of the provider that sets up the context.
@cloverich cloverich merged commit eb41e99 into master Jun 30, 2024
2 checks passed
@cloverich cloverich deleted the nav_search_sync branch June 30, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant